﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace HYSoft.IDAL
{
    /// <summary>
    /// 接口层View_Log
    /// </summary>
    public interface IView_Log
    {
        #region  成员方法
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        bool Exists(string m_area_name, string m_brd_addr, string m_bs_add, int m_brd_mac, int m_log_id, int m_bs_id, int m_alra_deal, int m_brd_log_time, int m_send_sms, int m_brd_log_year, string m_msg, int m_alar_stat);
        /// <summary>
        /// 增加一条数据
        /// </summary>
        bool Add(HYSoft.Model.View_Log model);
        /// <summary>
        /// 更新一条数据
        /// </summary>
        bool Update(HYSoft.Model.View_Log model);
        /// <summary>
        /// 删除一条数据
        /// </summary>
        bool Delete(string m_area_name, string m_brd_addr, string m_bs_add, int m_brd_mac, int m_log_id, int m_bs_id, int m_alra_deal, int m_brd_log_time, int m_send_sms, int m_brd_log_year, string m_msg, int m_alar_stat);
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        HYSoft.Model.View_Log GetModel(string m_area_name, string m_brd_addr, string m_bs_add, int m_brd_mac, int m_log_id, int m_bs_id, int m_alra_deal, int m_brd_log_time, int m_send_sms, int m_brd_log_year, string m_msg, int m_alar_stat);
        HYSoft.Model.View_Log DataRowToModel(DataRow row);
        /// <summary>
        /// 获得数据列表
        /// </summary>
        DataSet GetList(string strWhere);
        /// <summary>
        /// 获得前几行数据
        /// </summary>
        DataSet GetList(int Top, string strWhere, string filedOrder);
        int GetRecordCount(string strWhere);
        DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex);
        /// <summary>
        /// 根据分页获得数据列表
        /// </summary>
        //DataSet GetList(int PageSize,int PageIndex,string strWhere);
        #endregion  成员方法
        #region  MethodEx

        #endregion  MethodEx
    }
}